﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="OrgPersTree_Right.aspx.cs" Inherits="SysManage_OrgPersTree_Right" %>

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
 <title>人员管理</title>
    <link rel="stylesheet" href ="../css/css.css" type="text/css" />
    <script language="javascript" type="text/javascript"  >
function GetRowInfo(obj)
{
 form1.Hobj.value = obj;
 var ary = obj.split('|'); 
 form1.HOrgPersID.value = ary[0];   //部门人员ID
 form1.HPersID.value = ary[1];   //人员ID
 form1.HorgID.value = ary[13];   //部门ID
 form1.HEffective.value= ary[18];
// alert(obj);
}

         var tgs; 
         var tmp_background_val; 
         function tog(n,flags)
         { 
            //傳過來本次點擊前的的背景顏色 
            if (tgs){ 
             tgs.style.background= tmp_background_val ; 
            } 
            //考慮到連續點同一個對象的情況,就不要改變保留的顏色 
            n.style.background= '#A7C0F9' ; 
            tmp_background_val=flags;
            tgs=n; 
         } 
</script>
</head>
<body style =" background-image :url('../images/hit_bg.gif');">
    <form id="form1" runat="server">
    <table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
        <tr>
            <td>
  	           <table  style ="height :30; " width="100%" border="0" align="center" cellpadding="2" cellspacing="0" >
                <tr> 
                  <td>人员名称&nbsp;<asp:TextBox ID="PersName" runat="server" Width="100px"></asp:TextBox>
                      身份证&nbsp;<asp:TextBox ID="CardID" runat="server" Width="100px"></asp:TextBox>
                        <input id="SearchRoleInfo" name="Query" type="submit" runat="server"  class="button03" value=" 查 询(F) "  accesskey="f"  onserverclick="SearchPersInfo_ServerClick" />
                  </td>
                </tr>
              </table>
              </td>
            </tr>
            <tr>
              <td style="height :300;width:100%" valign ="top"
          <asp:GridView ID="GridView1" runat="server" Width="100%" DataKeyNames="ID" OnRowDataBound="GridView1_RowDataBound"
            ForeColor="#333333" AutoGenerateColumns="False" AllowSorting="True" AllowPaging="True"  PageSize="20" EmptyDataText="没搜索到相匹配的数据"  OnSorting="GridView1_Sorting"  BorderColor="#F9F9FB" BorderStyle="Dotted" GridLines="Vertical"  >        
            <FooterStyle BackColor="#990000" Font-Bold="True" ForeColor="#F9F9FB" />
            <RowStyle BackColor="#F9F9FB" ForeColor="#333333" Height="24px"  BorderStyle="Dotted" />
            <AlternatingRowStyle BackColor="#EFEFF8" />
            <HeaderStyle BackColor="#E3E7F0" Height="25px" />
            <Columns>
                <asp:BoundField DataField="ID" HeaderText="ID" SortExpression ="ID">
                    <ItemStyle CssClass="hidden" />
                    <HeaderStyle CssClass="hidden" />
                </asp:BoundField>
                <asp:BoundField DataField="PersID" HeaderText="人员ID" SortExpression ="PersID">
                    <ItemStyle CssClass="hidden" />
                    <HeaderStyle CssClass="hidden" />
                </asp:BoundField>
                <asp:BoundField DataField="PersCode" HeaderText="员工号"  SortExpression ="PersCode"/> 
                <asp:BoundField DataField="PersName" HeaderText="人员名称"  SortExpression ="PersName"/> 
                <asp:BoundField DataField="Sex" HeaderText="性别"   SortExpression ="Sex">
                    <ItemStyle CssClass="hidden" />
                    <HeaderStyle CssClass="hidden" />
                </asp:BoundField>
                <asp:BoundField DataField="Birth" HeaderText="出生日期"  SortExpression ="Birth"/>
                <asp:BoundField DataField="CardID" HeaderText="身份证" SortExpression ="CardID" />                               
                <asp:BoundField DataField="DutyName" HeaderText="职务名称" SortExpression ="DutyName" />
                <asp:BoundField DataField="Duty" HeaderText="职务" SortExpression ="Duty">
                    <ItemStyle CssClass="hidden" />
                    <HeaderStyle CssClass="hidden" />
                </asp:BoundField>
                <asp:BoundField DataField="Phone" HeaderText="电话" SortExpression ="b.Phone" />
                <asp:BoundField DataField="Mobile" HeaderText="移动电话" SortExpression ="Mobile" />
                <asp:BoundField DataField="IfPrincipal" HeaderText="是否负责人" SortExpression ="IfPrincipal" >
                    <ItemStyle CssClass="hidden" />
                    <HeaderStyle CssClass="hidden" />
                </asp:BoundField>
                <asp:BoundField DataField="Creator" HeaderText="创建人" SortExpression ="Creator">
                     <ItemStyle CssClass="hidden" />
                    <HeaderStyle CssClass="hidden" />
                </asp:BoundField>
                <asp:BoundField DataField="OrgID" HeaderText="部门ID" SortExpression ="OrgID">
                    <ItemStyle CssClass="hidden" />
                    <HeaderStyle CssClass="hidden" />
                </asp:BoundField> 
                <asp:BoundField DataField="OrgName" HeaderText="组织名称" SortExpression ="OrgName" />
                <asp:BoundField DataField="parentid" HeaderText="上级组织ID" SortExpression ="parentid">
                    <ItemStyle CssClass="hidden" />
                    <HeaderStyle CssClass="hidden" />
                </asp:BoundField>
                <asp:BoundField DataField="ParentName" HeaderText="上级组织名称" SortExpression ="ParentName">
                    <ItemStyle CssClass="hidden" />
                    <HeaderStyle CssClass="hidden" />
                </asp:BoundField>                
                <asp:BoundField DataField="DPOrder" HeaderText="排序" SortExpression ="DPOrder">
                     <ItemStyle CssClass="hidden" />
                    <HeaderStyle CssClass="hidden" />
                </asp:BoundField>
                <asp:BoundField DataField="Effective" HeaderText="是否有效" SortExpression ="Effective" >
                    <ItemStyle CssClass="hidden" />
                    <HeaderStyle CssClass="hidden" />
                </asp:BoundField>
                <asp:BoundField DataField="Principal" HeaderText="负责人"  SortExpression ="Principal">
                    <ItemStyle CssClass="hidden" />
                    <HeaderStyle CssClass="hidden" />
                </asp:BoundField>
            </Columns>
           <PagerSettings FirstPageImageUrl="img/BeginPage.gif" LastPageImageUrl="img/EndPage.gif"
            NextPageImageUrl="img/NextPage.gif" PreviousPageImageUrl="img/PrePage.gif" Mode="NextPreviousFirstLast" FirstPageText="首页" LastPageText="尾页" NextPageText="下一页" PreviousPageText="上一页" />
                 <EmptyDataRowStyle HorizontalAlign="Center" />
            </asp:GridView>
                </td>
            </tr>
     </table>
     <asp:Label ID="Label1" runat ="server" ></asp:Label>
     <input type="hidden"  id="Hobj" />
     <input type="hidden"  id="HPersID" runat ="server"  />
     <input type="hidden" id="HorgID" runat ="server" />
     <input type="hidden" id="HOrgType" runat ="server" />
     <input type="hidden" id="HOrgPersID" runat ="server" />
     <input type="hidden" id="HEffective" runat ="server" />
     <asp:Button ID="BtnExport" runat="server"  Text="Button" Width="0px" Height="0px" OnClick="BtnExport_Click" />
        <asp:Button ID="BtnDel" runat="server" Text="Button" Width="0px" Height="0px" OnClick="BtnDel_Click" />
        <asp:Button ID="BtnYJDel" runat="server" Text="Button" Width="0px" Height="0px" OnClick="BtnYJDel_Click"  />
        <asp:Button ID="BtnDispDel" runat="server" Text="Button" Width="0px" Height="0px" OnClick="BtnDispDel_Click" />
        <asp:Button ID="BtnHideDel" runat="server" Text="Button" Width="0px" Height="0px" OnClick="BtnHideDel_Click"/>
        <asp:Button ID="BtnRefresh" runat="server" Text="Button" Width="0px" Height="0px" OnClick="BtnRefresh_Click" />
        <asp:Button ID="BtnResume" runat="server" Text="Button" Width="0px" Height="0px" OnClick="BtnResume_Click" />
        <asp:Button ID="BtnFB" runat="server" Text="Button" Width="0px" Height="0px" OnClick="BtnFB_Click"/>    
    </form>
</body>
</html>

